#include <stdio.h>

int main()
{
    // const int a = 10;
    // int *p = &a;
    // *p = 20;
    //const 修饰指针
    int a = 10;
    //常量指针
    const int *p = &a;//不可修改内存
    //*p = 20;
    printf("%d\n", a);
    return 0;

   //指针常量
   int * const p = &a;//不可修改指针的朝向，地址不可改
    *p = 20;
    int b = 0; 
    p = &b
    
    const char *s1 = "hello";//常量字符串指针
}